package com.eling.elcms.system.webapp.controller;

import com.eling.elcms.core.webapp.controller.BaseFormController;
import com.eling.elcms.system.service.ISysParameter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
public class SysParameterController extends BaseFormController{

	@Autowired
    private ISysParameter sysParameter;
	
	@RequestMapping("/api/sysparameter/{code}")
	@ResponseBody
	public <T> T query(@PathVariable String code) {
		return sysParameter.getParameter(code);
	}
}
